<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>炽炎产品DEMO列表</title>
</head>
<body>
<div id="app" class="content bg">
       <div align="center"><img src="img/banner.png"  style="width: 60%;margin-bottom: 15px"/></div>
        <div v-for="item in list" style="text-align: center;font-size: 20px;padding-bottom: 20px">
            <a :href="item.url">
                <img :src="`img/logo/${item.logo}`" style="width: 100px;height: 100px">
            </a>
            <img src="img/arrow.png" style="position: relative;top: -30px"/>
            <a :href="item.intro">
                <img src="img/intro.png" style="width: 100px;height: 100px"/>
            </a>
        </div>
</div>
</body>

<script type="application/javascript" src="./axios.min.js"></script>
<script type="application/javascript" src="./vue.js"></script>
<script type="application/ecmascript">
    var app = new Vue({
        el: '#app',
        data: {
            list:[],

        },
        mounted(){
            axios.defaults.baseURL = 'http://chinahot.anyuest.com/api/';
            var that = this;
            axios.get('demo/getlist').then(function (res) {
                console.log(res);
                var data = res.data;
                console.log(data)
                that.list = data;
            });
        },
        methods:{
        }
    })
</script>
</html>

<style>
    body{
        font-family: "Microsoft YaHei";
        color: #2a3542;
        margin: 0;
        padding: 0;
    }
    .clear{
        clear:both;
    }
    .content{
        height: 100vh;
        overflow-y: auto;

    }
    .bg {
        background: url('img/bg.jpg') no-repeat;
        background-size: 100% auto;
    }
</style>